#ifndef CPT_H
#define CPT_H



#ifdef __cplusplus 
extern "C" { 
#endif
typedef struct SUB_POLICY {
    int position;
    int length;
} SubPolicy;

typedef struct POLICY {
    int sub_policy_num;
    SubPolicy *subPolicy[];
} Policy;

void NewSUB_POLICY(struct SUB_POLICY *subPolicy, int position, int length);

void NewPOLICY(struct POLICY *policy);

void addSUB_POLICY(struct POLICY *policy, struct SUB_POLICY *subPolicy);

void outputPolicyDetail(struct POLICY *policy);

void test_policy_ct_encrypt(unsigned char *instr, Policy *policy, unsigned char *outstr);

#ifdef __cplusplus
} 
#endif 

#endif /* CPT_H */



